package net.muchine.core.dao.user;

import java.util.List;

import org.springframework.stereotype.Component;

import net.muchine.core.dao.GenericDaoImpl;
import net.muchine.core.domain.user.Group;

@Component
public class GroupDaoImpl extends GenericDaoImpl<Group, Long> implements GroupDao {
	public Group findByName(String name) {
		return this.sqlSession.selectOne(this.sqlNamespace + ".findByName", name);
	}

	public List<Group> selectAll() {
		return this.sqlSession.selectList(this.sqlNamespace + ".selectAll");
	}
}
